﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model.Enums
{

    public enum Bingzhong
    {
        QiBing, DunBing, GongBing, QiangBing, QiXie
    }

    public static class BingzhongExtension
    {

        public static string tomark(this Bingzhong bingzhong)
        {
            switch (bingzhong)
            {
                case Bingzhong.QiBing:
                    return "骑兵";
                case Bingzhong.DunBing:
                    return "盾兵";
                case Bingzhong.GongBing:
                    return "弓兵";
                case Bingzhong.QiangBing:
                    return "枪兵";
                case Bingzhong.QiXie:
                    return "器械";
                default:
                    return string.Empty;
            }
        }
    }
}
